home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er Special 4
/
64er_Magazin_Sonderheft_04_86-04_1986_Markt__Technik_de_Disk_1_of_2_Side_A.d64
/
listing 06.ki
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
847b
|
31 lines
10 rem ********************************
11 rem * schueler - simulation *
12 rem * <c> 1986 bei michael nickles *
13 rem ********************************
100 print"[147][158]schueler-simulation[146]"
110 input"zufallsanteil";zu
120 ifzu<0orzu>100then110
130 print"logiganteil :"100-zu"%"
140 print"zufallsanteil:"zu"%"
150 print"bitte eine taste druecken!":poke198,0:wait198,1
1000 rem aufgabe stellen -------------------------------------------------------
1001 :
1010 a=int(10*rnd(1))+1
1020 b=int(10*rnd(1))+1
1030 print"wieviel ist"a"*"b"? ";
2000 rem antwort des schuelers -------------------------------------------------
2001 :
2010 x=int(100*rnd(1))+1
2020 ifx>zu then2100:rem logische antwort
2030 ifx<=zuthen2200:rem zufallsantwort
2100 rem richtige antwort ----------
2101 :
2110 c=a*b
2120 printc
2130 poke198,0:wait198,1:goto1000
2200 rem zufallsantwort ------------
2201 :
2210 c=int(100*rnd(1))+1
2220 printc
2230 poke198,0:wait198,1:goto1000